package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * Created by zhuyakun on 2017/10/23.
 */

public class PersonalHomeRequest {
    Integer userId;

    public PersonalHomeRequest() {
    }

    private PersonalHomeRequest(Builder builder) {
        setUserId(builder.userId);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }


    public static final class Builder {
        private Integer userId;

        private Builder() {
            userId = null;
        }

        public Builder userId(Integer userId) {
            this.userId = userId;
            return this;
        }

        public Call<ResponseBody> build() {
            return ApiManager.getService().personalHome(new PersonalHomeRequest(this));
        }
    }
}
